/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.datawander.codegenerator;

/**
 *
 * @author Marcin Stachniuk
 */
public class ForeignKey {

    private String name;
    private String ownerTable;
    private String referencedTableName;
    private String referencedTablePrimaryKey;
    private String relationalType;
    private String objectType;
    private Class referencedClass;
    private String referencedObjectFieldName;
    private boolean unique;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOwnerTable() {
        return ownerTable;
    }

    public void setOwnerTable(String ownerTable) {
        this.ownerTable = ownerTable;
    }

    public String getReferencedTableName() {
        return referencedTableName;
    }

    public void setReferencedTableName(String referencedTableName) {
        this.referencedTableName = referencedTableName;
    }

    public String getReferencedTablePrimaryKey() {
        return referencedTablePrimaryKey;
    }

    public void setReferencedTablePrimaryKey(String referencedTablePrimaryKey) {
        this.referencedTablePrimaryKey = referencedTablePrimaryKey;
    }

    public String getObjectType() {
        return objectType;
    }

    public void setObjectType(String objectType) {
        this.objectType = objectType;
    }

    public String getRelationalType() {
        return relationalType;
    }

    public void setRelationalType(String relationalType) {
        this.relationalType = relationalType;
    }

    public boolean isUnique() {
        return unique;
    }

    public void setUnique(boolean unique) {
        this.unique = unique;
    }

    public String getReferencedObjectFieldName() {
        return referencedObjectFieldName;
    }

    public void setReferencedObjectFieldName(String referencedObjectFieldName) {
        this.referencedObjectFieldName = referencedObjectFieldName;
    }

    public Class getReferencedClass() {
        return referencedClass;
    }

    public void setReferencedClass(Class referencedClassName) {
        this.referencedClass = referencedClassName;
    }
}
